package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.saas.domain.entity.KnowledgeCatalogueEntity;

import java.util.List;
import java.util.Map;


/**
 * @Author mingliang
 * @Description 知识库目录model
 * @Date 2022/6/21 15:23
 **/
public interface KnowledgeCatalogueModel extends IModel<KnowledgeCatalogueEntity> {
   @Override
   Integer insert(KnowledgeCatalogueEntity entity);

   void insertBatch(List<KnowledgeCatalogueEntity> list);

   @Override
   List<KnowledgeCatalogueEntity> findEntitys(Map<String, Object> param);

   @Override
   Integer getEntitysCount(Map<String, Object> param);

   @Override
   Integer update(KnowledgeCatalogueEntity entity);

   KnowledgeCatalogueEntity getByKey(Long key, String corpid);

   @Override
   List findEntitysWithoutSub(Map<String, Object> param);

    Integer updateBatchSort(String corpid, List<KnowledgeCatalogueEntity> knowledgeCatalogueEntityList);

   void deleteBatchByIds(Map<String, Object> param);
}
